﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ASBCC.Workflow.Client
{
    public class ActivityLineRule
    {
        public ActivityLineRule(string startActivityName, string finishActivityName, string lineRule)
        {
            _startActivityName = startActivityName;
            _finishActivityName = finishActivityName;
            _lineRule = lineRule;
        }

        public ActivityLineRule(string startActivityName, string endActivityName, bool on)
            : this(startActivityName, endActivityName, on ? LineRuleConsts.On : LineRuleConsts.Off)
        {
        }

        private string _startActivityName;
        public string StartActivityName { get { return _startActivityName; } }

        private string _finishActivityName;
        public string FinishActivityName { get { return _finishActivityName; } }

        private string _lineRule;
        public string LineRule { get { return _lineRule; } }

        public class LineRuleConsts
        {
            public const string On = "On";
            public const string Off = "Off";
        }
    }
}
